public with sharing class CallNotesExtension {
/*
public List<Notes__c> LeadNotes{get;set;}
    public CallNotesExtension(ApexPages.StandardController controller) {
    if(ApexPages.currentPage().getParameters().get('type') == 'lead' ){
    
        LeadNotes = [select id,Name,Notes__c,CreatedDate from Notes__c 
                     where Lead__c =:ApexPages.currentPage().getParameters().get('leadid') 
                     order by CreatedDate Desc];}
   
    if(ApexPages.currentPage().getParameters().get('type') == 'opty' ){
    
            LeadNotes = [select id,Name,Notes__c,CreatedDate from Notes__c 
                        where opportunity__c =:ApexPages.currentPage().getParameters().get('oppid')
                        order by CreatedDate Desc];}

    }
    
static testMethod void testCallNotexExtension()
{
Lead ld = new Lead(Company ='Test10 Demo',FirstName='John10',LastName='Smith10',Phone='1089898989',Disposition__c='Ready for Order');
 //Venkat added
    PageReference pg = new PageReference('/apex/ConvertLead');
    pg.getParameters().put('type','lead');

    Test.setCurrentPageReference(pg);
    //Venkat End
ApexPages.StandardController thecontroller  = new ApexPages.StandardController(ld);

CallNotesExtension objnotes = new CallNotesExtension(thecontroller);

Account accObj = new Account(Name='Test Account45');
insert accObj;
Opportunity opp = new Opportunity();
opp.AccountId= accObj.Id;
opp.Name='Test Opp';
opp.LeadSource='Internet';
Date curr = Date.today();
opp.CloseDate=curr;
opp.StageName='New';
opp.Most_Recent_Notes__c='testcoverage';
insert opp;

Notes__c callnotes = new Notes__c();
callnotes.Lead__c=ld.Id;
callnotes.Disposition__c='Called';
callnotes.Opportunity__c=opp.Id;
callnotes.Notes__c='testing';
insert callnotes;

}    */
}